<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add Excersize</title>
</head>
<body>
	<h2>Being Java Guys | Hello World</h2>
	<%-- 	<spring --%>
	<table>
		<c:forEach items="${exercises}" var="exercise">
			<tr>
				<td>${exercise.name}</td>
				<td>${exercise.primaryBodyParts }</td>
			</tr>
		</c:forEach>
	</table>
	<%-- 	<h4>${ext.primaryBodyParts}</h4> --%>
	<form:form method="post" action="exercise.html"
		modelAttribute="exercise">
		<form:input path="name" />
		<form:select path="primaryBodyParts" items="${bps}"></form:select>
		<input type="submit" />
	</form:form>
</body>
</html>